package com.giantlizard.cloud.gateway.config.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

import java.util.ArrayList;
import java.util.List;

/**
 * 白名单配置类
 * 
 * @author GiantLizard
 */
@Configuration
@RefreshScope  // 支持配置动态刷新
@ConfigurationProperties(prefix = "ignore")  // 配置前缀
public class IgnoreWhiteProperties {
    
    /** 白名单列表 */
    private List<String> whites = new ArrayList<>();

    public List<String> getWhites() {
        return whites;
    }

    public void setWhites(List<String> whites) {
        this.whites = whites;
    }
} 